//
//  ViewFormController.h
//  MClient
//
//  Created by  史正烨 on 09-10-20.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ListCell.h"

@interface ViewFormController : MCTableViewController <UIActionSheetDelegate,UITabBarDelegate,UIWebViewDelegate> {
	NSString *dataObjectName;
	NSString *layoutName;
	NSString *keyValue;
	NSMutableArray *initialValues;
	NSMutableDictionary *formData;
	NSMutableDictionary *formLayout;
	int tabIndex;
	ListCell *listCell;
	NSMutableArray *viewButtons;
	NSMutableArray *subButtons;
	
	NSMutableDictionary*   imageSizeMap;
	
	UIView *backgroundView;
	//BOOL    hasTab;
	NSMutableDictionary *formLayoutCopy;
	NSMutableDictionary *formDataCopy;
	int		 buttonCol;
	NSMutableArray *withFormButtons;
	
	//listconfig为0，且section大于1时，为true
	BOOL isSectionTab;
    
    int actionSheetFlag;
}

@property (nonatomic,retain) NSString *dataObjectName;
@property (nonatomic,retain) NSString *layoutName;
@property (nonatomic,retain) NSString *keyValue;
@property (nonatomic,retain) NSMutableArray *initialValues;
@property (nonatomic,retain) NSMutableDictionary *formData;
@property (nonatomic,retain) NSMutableDictionary *formLayout;

- (void)getDataFromServer;
@end
